public class ques6 {
	public static void main(String args[]) {
		int i=1,add=0;
		for(;add<8888;i++) {
			add+=i;
		}
		System.out.println((add-i+1)+"和"+i);
	}
}
